package cn.ingrun.ingrunutils.params;

import com.github.pagehelper.PageInfo;

import java.util.List;

public class PageHelperList<T> {
    private long total;
    private List<T> rows;

    public PageHelperList (List<T> list){
        PageInfo<T> tPageInfo = new PageInfo<>(list);
        this.total = tPageInfo.getTotal();
        this.rows = list;
    }

    public PageHelperList (List<T> list, int total){
        this.total = total;
        this.rows = list;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }


}
